package com.zzyl.mapper;

import com.zzyl.entity.NursingProject;
import com.zzyl.vo.NursingProjectVo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * 护理项目Mapper接口
 */
@Mapper
public interface NursingProjectMapper {

    //分页查询护理项目
    List<NursingProject> selectByPage(String name, Integer status);

    //添加护理项目
    void insert(NursingProject nursingProject);

    //根据ID回显护理项目
    // @Select("select * from nursing_project where id = #{id}")
    NursingProjectVo findById(Long id);

    //修改护理项目
    void update(NursingProject nursingProjectDto);

    //删除护理项目
    void delete(List<Long> ids);

    //修改护理项目的状态
    void updateStatus(Long id, Integer status);
}